package com.zh.listener;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;
import org.springframework.stereotype.Component;

/**
 * 测试监听器分配
 */
//@Component
public class DemoListener implements TaskListener {
    @Override
    public void notify(DelegateTask delegateTask) {
        // 这里指定任务分配人
        delegateTask.setAssignee("demoListener");
    }
}
